class Employee:
    # 类变量，用于记录实例化的次数
    count = 0

    def __init__(self, name):
        self.name = name
        # 每次创建新实例时，count增加1
        Employee.count += 1

    @classmethod
    def get_count(cls):
        # 类方法，返回实例化的总次数
        return cls.count


# 测试代码
if __name__ == "__main__":
    emp1 = Employee("ZhangSan")
    emp2 = Employee("LiSi")
    emp3 = Employee("WangWu")

    # 输出当前所有实例的数量
    print(f"Number of employees instantiated: {Employee.get_count()}")
